<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<script src="${pageContext.request.contextPath}/js/function.js"></script>
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>

	<div id="table1"></div>
	<div id="main_left">
		<h4>登陆</h4>
		<form action="user" method="post">
			用户名：<br /> <input name="username" type="text" /><br />
			密码：<br /> <input name="password" type="password" /><br /> 
			<input name="enter" type="submit" value="登陆"  />
			<a href="regist.jsp"><u>注册&gt;&gt;</u></a>
		</form>
		
	</div>
	<div id="main_right">
		<h4>最近更新的博客</h4>
		<table id="table">
	<c:forEach var="blog" items="${requestScope.blogList}" varStatus="status">
			<tr>
				<td id="title"><a href="${blog.btitle}"></a></td>
				<td id="createtime">${blog.bcreateTime }</td>
			</tr>
			<tr>
				<td colspan="3" id="content1">

						<!-- String string = blog.getBcontent();
							int length = 100;
							if(string.length()< 100) {
								length = string.length();
							}
							String newsString = string.substring(0, length);
							out.println(newsString + "...");-->

				</td>
			</tr>
	</c:forEach>
		</table>

	</div>
</body>
</html>